package com.crm.user.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.crm.base.model.BaseModel;
import com.crm.sys.model.Department;
import com.crm.sys.model.TokenPackage;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * 用户账户表<br>
 * String account:帐号<br>
 * String password:密码<br>
 * Integer state:状态<br>
 * Integer isdel:是否删除（0未删除1已删除）<br>
 * -----------------<br>
 * UserInfo info:用户基本信息<br>
 * Department dept:部门对象<br>
 * */
public  class UserAccount extends BaseModel {
	
	/**
	 * 无参构造函数
	 * */
	public UserAccount(){}
	
	/**
	 * 创建一个带有id的useraccount对象
	 * */
	public UserAccount(Long id) {
		this.id = id;
	}
	
	/**
	 * 创建一个带有account，password信息的useraccount对象
	 * */
	public UserAccount(String account,String password) {
		this.account = account;
		this.password = password;
	}
 
	private static final long serialVersionUID = -3651727633384473792L;
	
	private UserInfo info;//用户基本信息
	
	private String account;//账号
	
	private String password;//密码
	
	private Integer state;//状态
	
	private Integer isdel = 0;//是否删除（0未删除1已删除）
	
	private Department dept;//部门对象
	
	private  TokenPackage tokenPackage;
	
 

	public TokenPackage getTokenPackage() {
		return tokenPackage;
	}

	public void setTokenPackage(TokenPackage tokenPackage) {
		this.tokenPackage = tokenPackage;
	}

	public Department getDept() {
		return dept;
	}
	public void setDept(Department dept) {
		this.dept = dept;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public UserInfo getInfo() {
		return info;
	}
	public void setInfo(UserInfo info) {
		this.info = info;
	}
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

	public Integer getIsdel() {
		return isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	 
}